﻿
Partial Class WebForm_ManageWorkQuery
    Inherits My.MyPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Me.InitData()

            '只有管理權限才可以匯入年度時數 Mod by Shihyu 2011/08/02
            If Me.CanAdmin = True Then
                Me.ImportHourTabPanel.Visible = True
            End If
            '   MyObj.WriteErrorLog(Me.ProgramName)
        End If

        Me.Form.Enctype = "multipart/form-data"
    End Sub

    Protected Sub SearchWorkRecord1_Active(ByVal source As Object, ByVal e As System.EventArgs) Handles SearchWorkRecord1.Active
        Me.TabContainer1.ActiveTab = Me.SearchWorkRecordTabPanel
    End Sub

    Private Sub InitData()
    End Sub

    Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
        '處理'GridView' 的控制項 'GridView' 必須置於有 runat=server 的表單標記之中
    End Sub

    Public Property UOrganizationID() As String
        Get
            Return ViewState("UOrganizationID")
        End Get
        Set(ByVal value As String)
            ViewState("UOrganizationID") = value
        End Set
    End Property

End Class